﻿namespace OasisCiq.Xpil
{
    using System.Collections.Generic;
    using System.Collections.Specialized;
    using CommonTypes;
    using External;
    using XS;

    /// <summary>
    /// A container for physical characteristics of a person
    /// </summary>
    public class PhysicalInfo : IDataQualityGroup, IExtendedAttributes
    {
        public virtual ICollection<PhysicalInfoFreeTextLine> FreeTextLines { get; set; }

        public virtual ICollection<PhysicalFeature> Features { get; set; }

        public virtual ICollection<BodyMark> BodyMarks { get; set; }

        public virtual ICollection<Disability> Disabilities { get; set; }

        public virtual ICollection<Allergy> Allergies { get; set; }

        public virtual ICollection<HealthCondition> HealthConditions { get; set; }

        public virtual BloodGroupList BloodGroup { get; set; }

        /// <summary>
        /// This attribute indicates what level of trust can be given to the parent element.
        /// Omit this attribute if the data quality is unknown. If the data quality is known,
        /// the value is "Valid, else "InValid"
        /// </summary>
        public virtual DataQualityTypeList DataQualityType { get; set; }

        /// <summary>
        /// Date the data quality is valid from
        /// </summary>
        public virtual XSDateTime ValidFrom { get; set; }

        /// <summary>
        /// Date the data quality is valid to
        /// </summary>
        public virtual XSDateTime ValidTo { get; set; }

        public virtual NameValueCollection ExtendedAttributes { get; set; }
    }
}
